package gui.perspective;

import gui.view.ConnectedUsersView;
import gui.view.WorldsView;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

public class AdminPerspective implements IPerspectiveFactory {
	public static final String ID = "gui.perspective.AdminPerspective";

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);

		layout.addStandaloneView(WorldsView.ID, true, IPageLayout.LEFT, 0.25f,
				editorArea);
		layout.addStandaloneView(ConnectedUsersView.ID, true, IPageLayout.TOP,
				0.5f, editorArea);
		layout.addStandaloneView(IPageLayout.ID_PROP_SHEET, true,
				IPageLayout.BOTTOM, 0.50f, WorldsView.ID);

		layout.getViewLayout(WorldsView.ID).setCloseable(false);
		layout.getViewLayout(ConnectedUsersView.ID).setCloseable(false);
		layout.getViewLayout(IPageLayout.ID_PROP_SHEET).setCloseable(false);
	}

}
